var status = -1;
var count = 0;

function action(d, c, b) {
    if (d === 0) {
        status--
    } else {
        status++
    }
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            for (var a = 59000; a < 59405; a++) {
                cm.forceCompleteQuest(a);
                count++
            }
            cm.teachSkill(110001511, 30, 30);
            cm.teachSkill(110001512, 30, 30);
            cm.teachSkill(110000513, 30, 30);
            cm.teachSkill(110000515, 10, 10);
            cm.warp(100000000, 0, true);
            cm.playerMessage(1, "[林之灵]\r\n完成任务[" + count + "]个\r\n跳过狗血教程任务\r\n冒险之路从这里开始");
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};